package com.edu.neusoft.elec_shop.domain;

import java.util.Date;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class Orders {
    @NotNull(message = "订单编号不能为空")
    private Long orderId;

    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @NotNull(message = "下单时间不能为空")
    private Date orderDate;

    @NotBlank(message = "订单总价不能为空")
    private String totalAmount;

    @NotBlank(message = "订单包含的商品信息不能为空")
    private String orderItems;
}